using System.Reflection;
using Microsoft.EntityFrameworkCore;
using StudentVideo.Data.Extensions;

namespace StudentVideo.Data;

public partial class AppDbContext(DbContextOptions<AppDbContext> options): DbContext(options) {

   protected override void OnModelCreating(ModelBuilder modelBuilder) {
      modelBuilder.ApplyXmlComments(Assembly.GetExecutingAssembly());

      base.OnModelCreating(modelBuilder);
   }
}
